<?php

use Illuminate\Database\Seeder;

class HouseFeeConfigSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // 水, 电, 煤, 物业费, 垃圾费, 网费,
        \App\Models\HouseFeeConfig::query()->create([
            'name' => '水',
            'type' => \App\Models\HouseFeeConfig::TYPE_METER_READING,
            'unit' => '吨'
        ]);

        \App\Models\HouseFeeConfig::query()->create([
            'name' => '电',
            'type' => \App\Models\HouseFeeConfig::TYPE_METER_READING,
            'unit' => '度'
        ]);

        \App\Models\HouseFeeConfig::query()->create([
            'name' => '物业管理费',
            'type' => \App\Models\HouseFeeConfig::TYPE_CYCLE,
            'unit' => '期'
        ]);

        \App\Models\HouseFeeConfig::query()->create([
            'name' => '垃圾处理费',
            'type' => \App\Models\HouseFeeConfig::TYPE_CYCLE,
            'unit' => '期'
        ]);

        \App\Models\HouseFeeConfig::query()->create([
            'name' => '网费',
            'type' => \App\Models\HouseFeeConfig::TYPE_CYCLE,
            'unit' => '期'
        ]);
    }
}
